﻿using System.Data;
using MigSharp;

namespace CmsDatabaseMigrations.Migrations
{
    [MigrationExport(Tag = "Adds BlockFromSearhEngines field to MediaContents table.", ModuleName = "Media")]
    public class MediaAddHideFromSeo201210272257 : IReversibleMigration
    {
        public void Up(IDatabase db)
        {
            db.Tables["MediaContents"].AddNotNullableColumn("BlockFromSearchEngines", DbType.Boolean).HavingDefault(0);
        }

        public void Down(IDatabase db)
        {
            
        }
    }
}